<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script>
    var r = parseFloat(prompt("请输入半径"));
    var h = parseFloat(prompt("请输入高度"));
    alert('圆锥体积为:' + 1/3 * Math.PI * r * r * h);
  </script>
</head>
<body>
  
  
</body>
</html>